﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="CDmShpScoreSalesLog" targetNamespace="http://tempuri.org/CDmShpScoreSalesLog.xsd" xmlns:mstns="http://tempuri.org/CDmShpScoreSalesLog.xsd" xmlns="http://tempuri.org/CDmShpScoreSalesLog.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="1" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="msBscConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="msBscConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.msBsc.Xsd.DataTds.Properties.Settings.GlobalReference.Default.msBscConnectionString" Provider="System.Data.SqlClient" />
          <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="msBscConnectionString1" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="msBscConnectionString1 (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.msBsc.Xsd.DataTds.Properties.Settings.GlobalReference.Default.msBscConnectionString1" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="SHP_SCORE_SALES_LOGTableAdapter" GeneratorDataComponentClassName="SHP_SCORE_SALES_LOGTableAdapter" Name="SHP_SCORE_SALES_LOG" UserDataComponentName="SHP_SCORE_SALES_LOGTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="msBscConnectionString1 (Settings)" DbObjectName="msBsc.dbo.SHP_SCORE_SALES_LOG" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[SHP_SCORE_SALES_LOG] WHERE (([SALES_LOG_ID] = @Original_SALES_LOG_ID) AND ([TRADING_NO] = @Original_TRADING_NO) AND ((@IsNull_COMM_TENANT_ID = 1 AND [COMM_TENANT_ID] IS NULL) OR ([COMM_TENANT_ID] = @Original_COMM_TENANT_ID)) AND ((@IsNull_COMM_TENANT_NME = 1 AND [COMM_TENANT_NME] IS NULL) OR ([COMM_TENANT_NME] = @Original_COMM_TENANT_NME)) AND ((@IsNull_COMM_USER_NME = 1 AND [COMM_USER_NME] IS NULL) OR ([COMM_USER_NME] = @Original_COMM_USER_NME)) AND ((@IsNull_SALES_TYPE_CID = 1 AND [SALES_TYPE_CID] IS NULL) OR ([SALES_TYPE_CID] = @Original_SALES_TYPE_CID)) AND ((@IsNull_SALES_QTY = 1 AND [SALES_QTY] IS NULL) OR ([SALES_QTY] = @Original_SALES_QTY)) AND ((@IsNull_SALES_PRICE = 1 AND [SALES_PRICE] IS NULL) OR ([SALES_PRICE] = @Original_SALES_PRICE)) AND ((@IsNull_SALES_AMT = 1 AND [SALES_AMT] IS NULL) OR ([SALES_AMT] = @Original_SALES_AMT)) AND ((@IsNull_DISCOUNT_AMT = 1 AND [DISCOUNT_AMT] IS NULL) OR ([DISCOUNT_AMT] = @Original_DISCOUNT_AMT)) AND ((@IsNull_STL_AMT = 1 AND [STL_AMT] IS NULL) OR ([STL_AMT] = @Original_STL_AMT)) AND ((@IsNull_TRADING_SID = 1 AND [TRADING_SID] IS NULL) OR ([TRADING_SID] = @Original_TRADING_SID)) AND ((@IsNull_INITIAL_DT = 1 AND [INITIAL_DT] IS NULL) OR ([INITIAL_DT] = @Original_INITIAL_DT)) AND ((@IsNull_INITIAL_USR = 1 AND [INITIAL_USR] IS NULL) OR ([INITIAL_USR] = @Original_INITIAL_USR)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_SALES_LOG_ID" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="SALES_LOG_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_TRADING_NO" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="TRADING_NO" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_COMM_TENANT_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="COMM_TENANT_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_COMM_TENANT_ID" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="COMM_TENANT_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_COMM_TENANT_NME" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="COMM_TENANT_NME" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_COMM_TENANT_NME" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="COMM_TENANT_NME" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_COMM_USER_NME" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="COMM_USER_NME" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_COMM_USER_NME" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="COMM_USER_NME" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_SALES_TYPE_CID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SALES_TYPE_CID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_SALES_TYPE_CID" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="SALES_TYPE_CID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_SALES_QTY" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SALES_QTY" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_SALES_QTY" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SALES_QTY" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_SALES_PRICE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SALES_PRICE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@Original_SALES_PRICE" Precision="18" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="SALES_PRICE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_SALES_AMT" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SALES_AMT" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@Original_SALES_AMT" Precision="18" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="SALES_AMT" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DISCOUNT_AMT" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DISCOUNT_AMT" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@Original_DISCOUNT_AMT" Precision="18" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="DISCOUNT_AMT" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_STL_AMT" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="STL_AMT" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@Original_STL_AMT" Precision="18" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="STL_AMT" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TRADING_SID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TRADING_SID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_TRADING_SID" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="TRADING_SID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_INITIAL_DT" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="INITIAL_DT" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_INITIAL_DT" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="INITIAL_DT" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_INITIAL_USR" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="INITIAL_USR" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_INITIAL_USR" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="INITIAL_USR" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[SHP_SCORE_SALES_LOG] ([SALES_LOG_ID], [TRADING_NO], [COMM_TENANT_ID], [COMM_TENANT_NME], [COMM_USER_NME], [SALES_TYPE_CID], [SALES_QTY], [SALES_PRICE], [SALES_AMT], [DISCOUNT_AMT], [STL_AMT], [TRADING_SID], [INITIAL_DT], [INITIAL_USR]) VALUES (@SALES_LOG_ID, @TRADING_NO, @COMM_TENANT_ID, @COMM_TENANT_NME, @COMM_USER_NME, @SALES_TYPE_CID, @SALES_QTY, @SALES_PRICE, @SALES_AMT, @DISCOUNT_AMT, @STL_AMT, @TRADING_SID, @INITIAL_DT, @INITIAL_USR);
SELECT SALES_LOG_ID, TRADING_NO, COMM_TENANT_ID, COMM_TENANT_NME, COMM_USER_NME, SALES_TYPE_CID, SALES_QTY, SALES_PRICE, SALES_AMT, DISCOUNT_AMT, STL_AMT, TRADING_SID, INITIAL_DT, INITIAL_USR FROM SHP_SCORE_SALES_LOG WHERE (SALES_LOG_ID = @SALES_LOG_ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@SALES_LOG_ID" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="SALES_LOG_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@TRADING_NO" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="TRADING_NO" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@COMM_TENANT_ID" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="COMM_TENANT_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@COMM_TENANT_NME" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="COMM_TENANT_NME" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@COMM_USER_NME" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="COMM_USER_NME" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@SALES_TYPE_CID" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="SALES_TYPE_CID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@SALES_QTY" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SALES_QTY" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@SALES_PRICE" Precision="18" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="SALES_PRICE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@SALES_AMT" Precision="18" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="SALES_AMT" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@DISCOUNT_AMT" Precision="18" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="DISCOUNT_AMT" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@STL_AMT" Precision="18" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="STL_AMT" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@TRADING_SID" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="TRADING_SID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@INITIAL_DT" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="INITIAL_DT" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@INITIAL_USR" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="INITIAL_USR" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT SALES_LOG_ID, TRADING_NO, COMM_TENANT_ID, COMM_TENANT_NME, COMM_USER_NME, SALES_TYPE_CID, SALES_QTY, SALES_PRICE, SALES_AMT, DISCOUNT_AMT, STL_AMT, TRADING_SID, INITIAL_DT, INITIAL_USR FROM dbo.SHP_SCORE_SALES_LOG</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[SHP_SCORE_SALES_LOG] SET [SALES_LOG_ID] = @SALES_LOG_ID, [TRADING_NO] = @TRADING_NO, [COMM_TENANT_ID] = @COMM_TENANT_ID, [COMM_TENANT_NME] = @COMM_TENANT_NME, [COMM_USER_NME] = @COMM_USER_NME, [SALES_TYPE_CID] = @SALES_TYPE_CID, [SALES_QTY] = @SALES_QTY, [SALES_PRICE] = @SALES_PRICE, [SALES_AMT] = @SALES_AMT, [DISCOUNT_AMT] = @DISCOUNT_AMT, [STL_AMT] = @STL_AMT, [TRADING_SID] = @TRADING_SID, [INITIAL_DT] = @INITIAL_DT, [INITIAL_USR] = @INITIAL_USR WHERE (([SALES_LOG_ID] = @Original_SALES_LOG_ID) AND ([TRADING_NO] = @Original_TRADING_NO) AND ((@IsNull_COMM_TENANT_ID = 1 AND [COMM_TENANT_ID] IS NULL) OR ([COMM_TENANT_ID] = @Original_COMM_TENANT_ID)) AND ((@IsNull_COMM_TENANT_NME = 1 AND [COMM_TENANT_NME] IS NULL) OR ([COMM_TENANT_NME] = @Original_COMM_TENANT_NME)) AND ((@IsNull_COMM_USER_NME = 1 AND [COMM_USER_NME] IS NULL) OR ([COMM_USER_NME] = @Original_COMM_USER_NME)) AND ((@IsNull_SALES_TYPE_CID = 1 AND [SALES_TYPE_CID] IS NULL) OR ([SALES_TYPE_CID] = @Original_SALES_TYPE_CID)) AND ((@IsNull_SALES_QTY = 1 AND [SALES_QTY] IS NULL) OR ([SALES_QTY] = @Original_SALES_QTY)) AND ((@IsNull_SALES_PRICE = 1 AND [SALES_PRICE] IS NULL) OR ([SALES_PRICE] = @Original_SALES_PRICE)) AND ((@IsNull_SALES_AMT = 1 AND [SALES_AMT] IS NULL) OR ([SALES_AMT] = @Original_SALES_AMT)) AND ((@IsNull_DISCOUNT_AMT = 1 AND [DISCOUNT_AMT] IS NULL) OR ([DISCOUNT_AMT] = @Original_DISCOUNT_AMT)) AND ((@IsNull_STL_AMT = 1 AND [STL_AMT] IS NULL) OR ([STL_AMT] = @Original_STL_AMT)) AND ((@IsNull_TRADING_SID = 1 AND [TRADING_SID] IS NULL) OR ([TRADING_SID] = @Original_TRADING_SID)) AND ((@IsNull_INITIAL_DT = 1 AND [INITIAL_DT] IS NULL) OR ([INITIAL_DT] = @Original_INITIAL_DT)) AND ((@IsNull_INITIAL_USR = 1 AND [INITIAL_USR] IS NULL) OR ([INITIAL_USR] = @Original_INITIAL_USR)));
SELECT SALES_LOG_ID, TRADING_NO, COMM_TENANT_ID, COMM_TENANT_NME, COMM_USER_NME, SALES_TYPE_CID, SALES_QTY, SALES_PRICE, SALES_AMT, DISCOUNT_AMT, STL_AMT, TRADING_SID, INITIAL_DT, INITIAL_USR FROM SHP_SCORE_SALES_LOG WHERE (SALES_LOG_ID = @SALES_LOG_ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@SALES_LOG_ID" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="SALES_LOG_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@TRADING_NO" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="TRADING_NO" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@COMM_TENANT_ID" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="COMM_TENANT_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@COMM_TENANT_NME" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="COMM_TENANT_NME" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@COMM_USER_NME" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="COMM_USER_NME" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@SALES_TYPE_CID" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="SALES_TYPE_CID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@SALES_QTY" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SALES_QTY" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@SALES_PRICE" Precision="18" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="SALES_PRICE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@SALES_AMT" Precision="18" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="SALES_AMT" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@DISCOUNT_AMT" Precision="18" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="DISCOUNT_AMT" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@STL_AMT" Precision="18" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="STL_AMT" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@TRADING_SID" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="TRADING_SID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@INITIAL_DT" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="INITIAL_DT" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@INITIAL_USR" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="INITIAL_USR" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_SALES_LOG_ID" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="SALES_LOG_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_TRADING_NO" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="TRADING_NO" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_COMM_TENANT_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="COMM_TENANT_ID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_COMM_TENANT_ID" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="COMM_TENANT_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_COMM_TENANT_NME" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="COMM_TENANT_NME" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_COMM_TENANT_NME" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="COMM_TENANT_NME" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_COMM_USER_NME" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="COMM_USER_NME" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_COMM_USER_NME" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="COMM_USER_NME" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_SALES_TYPE_CID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SALES_TYPE_CID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_SALES_TYPE_CID" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="SALES_TYPE_CID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_SALES_QTY" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SALES_QTY" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_SALES_QTY" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SALES_QTY" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_SALES_PRICE" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SALES_PRICE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@Original_SALES_PRICE" Precision="18" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="SALES_PRICE" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_SALES_AMT" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="SALES_AMT" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@Original_SALES_AMT" Precision="18" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="SALES_AMT" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_DISCOUNT_AMT" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DISCOUNT_AMT" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@Original_DISCOUNT_AMT" Precision="18" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="DISCOUNT_AMT" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_STL_AMT" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="STL_AMT" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@Original_STL_AMT" Precision="18" ProviderType="Decimal" Scale="2" Size="0" SourceColumn="STL_AMT" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_TRADING_SID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="TRADING_SID" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_TRADING_SID" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="TRADING_SID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_INITIAL_DT" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="INITIAL_DT" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_INITIAL_DT" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="INITIAL_DT" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_INITIAL_USR" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="INITIAL_USR" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_INITIAL_USR" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="INITIAL_USR" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="SALES_LOG_ID" DataSetColumn="SALES_LOG_ID" />
              <Mapping SourceColumn="TRADING_NO" DataSetColumn="TRADING_NO" />
              <Mapping SourceColumn="COMM_TENANT_ID" DataSetColumn="COMM_TENANT_ID" />
              <Mapping SourceColumn="COMM_TENANT_NME" DataSetColumn="COMM_TENANT_NME" />
              <Mapping SourceColumn="COMM_USER_NME" DataSetColumn="COMM_USER_NME" />
              <Mapping SourceColumn="SALES_TYPE_CID" DataSetColumn="SALES_TYPE_CID" />
              <Mapping SourceColumn="SALES_QTY" DataSetColumn="SALES_QTY" />
              <Mapping SourceColumn="SALES_PRICE" DataSetColumn="SALES_PRICE" />
              <Mapping SourceColumn="SALES_AMT" DataSetColumn="SALES_AMT" />
              <Mapping SourceColumn="DISCOUNT_AMT" DataSetColumn="DISCOUNT_AMT" />
              <Mapping SourceColumn="STL_AMT" DataSetColumn="STL_AMT" />
              <Mapping SourceColumn="TRADING_SID" DataSetColumn="TRADING_SID" />
              <Mapping SourceColumn="INITIAL_DT" DataSetColumn="INITIAL_DT" />
              <Mapping SourceColumn="INITIAL_USR" DataSetColumn="INITIAL_USR" />
            </Mappings>
            <Sources />
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="CDmShpScoreSalesLog" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="CDmShpScoreSalesLog" msprop:Generator_UserDSName="CDmShpScoreSalesLog">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="SHP_SCORE_SALES_LOG" msprop:Generator_TableClassName="SHP_SCORE_SALES_LOGDataTable" msprop:Generator_TableVarName="tableSHP_SCORE_SALES_LOG" msprop:Generator_TablePropName="SHP_SCORE_SALES_LOG" msprop:Generator_RowDeletingName="SHP_SCORE_SALES_LOGRowDeleting" msprop:Generator_RowChangingName="SHP_SCORE_SALES_LOGRowChanging" msprop:Generator_RowEvHandlerName="SHP_SCORE_SALES_LOGRowChangeEventHandler" msprop:Generator_RowDeletedName="SHP_SCORE_SALES_LOGRowDeleted" msprop:Generator_UserTableName="SHP_SCORE_SALES_LOG" msprop:Generator_RowChangedName="SHP_SCORE_SALES_LOGRowChanged" msprop:Generator_RowEvArgName="SHP_SCORE_SALES_LOGRowChangeEvent" msprop:Generator_RowClassName="SHP_SCORE_SALES_LOGRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="SALES_LOG_ID" msprop:Generator_ColumnVarNameInTable="columnSALES_LOG_ID" msprop:Generator_ColumnPropNameInRow="SALES_LOG_ID" msprop:Generator_ColumnPropNameInTable="SALES_LOG_IDColumn" msprop:Generator_UserColumnName="SALES_LOG_ID">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="36" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="TRADING_NO" msprop:Generator_ColumnVarNameInTable="columnTRADING_NO" msprop:Generator_ColumnPropNameInRow="TRADING_NO" msprop:Generator_ColumnPropNameInTable="TRADING_NOColumn" msprop:Generator_UserColumnName="TRADING_NO">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="30" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="COMM_TENANT_ID" msprop:Generator_ColumnVarNameInTable="columnCOMM_TENANT_ID" msprop:Generator_ColumnPropNameInRow="COMM_TENANT_ID" msprop:Generator_ColumnPropNameInTable="COMM_TENANT_IDColumn" msprop:Generator_UserColumnName="COMM_TENANT_ID" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="36" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="COMM_TENANT_NME" msprop:Generator_ColumnVarNameInTable="columnCOMM_TENANT_NME" msprop:Generator_ColumnPropNameInRow="COMM_TENANT_NME" msprop:Generator_ColumnPropNameInTable="COMM_TENANT_NMEColumn" msprop:Generator_UserColumnName="COMM_TENANT_NME" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="36" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="COMM_USER_NME" msprop:Generator_ColumnVarNameInTable="columnCOMM_USER_NME" msprop:Generator_ColumnPropNameInRow="COMM_USER_NME" msprop:Generator_ColumnPropNameInTable="COMM_USER_NMEColumn" msprop:Generator_UserColumnName="COMM_USER_NME" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="20" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="SALES_TYPE_CID" msprop:Generator_ColumnVarNameInTable="columnSALES_TYPE_CID" msprop:Generator_ColumnPropNameInRow="SALES_TYPE_CID" msprop:Generator_ColumnPropNameInTable="SALES_TYPE_CIDColumn" msprop:Generator_UserColumnName="SALES_TYPE_CID" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="20" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="SALES_QTY" msprop:Generator_ColumnVarNameInTable="columnSALES_QTY" msprop:Generator_ColumnPropNameInRow="SALES_QTY" msprop:Generator_ColumnPropNameInTable="SALES_QTYColumn" msprop:Generator_UserColumnName="SALES_QTY" type="xs:int" minOccurs="0" />
              <xs:element name="SALES_PRICE" msprop:Generator_ColumnVarNameInTable="columnSALES_PRICE" msprop:Generator_ColumnPropNameInRow="SALES_PRICE" msprop:Generator_ColumnPropNameInTable="SALES_PRICEColumn" msprop:Generator_UserColumnName="SALES_PRICE" type="xs:decimal" minOccurs="0" />
              <xs:element name="SALES_AMT" msprop:Generator_ColumnVarNameInTable="columnSALES_AMT" msprop:Generator_ColumnPropNameInRow="SALES_AMT" msprop:Generator_ColumnPropNameInTable="SALES_AMTColumn" msprop:Generator_UserColumnName="SALES_AMT" type="xs:decimal" minOccurs="0" />
              <xs:element name="DISCOUNT_AMT" msprop:Generator_ColumnVarNameInTable="columnDISCOUNT_AMT" msprop:Generator_ColumnPropNameInRow="DISCOUNT_AMT" msprop:Generator_ColumnPropNameInTable="DISCOUNT_AMTColumn" msprop:Generator_UserColumnName="DISCOUNT_AMT" type="xs:decimal" minOccurs="0" />
              <xs:element name="STL_AMT" msprop:Generator_ColumnVarNameInTable="columnSTL_AMT" msprop:Generator_ColumnPropNameInRow="STL_AMT" msprop:Generator_ColumnPropNameInTable="STL_AMTColumn" msprop:Generator_UserColumnName="STL_AMT" type="xs:decimal" minOccurs="0" />
              <xs:element name="TRADING_SID" msprop:Generator_ColumnVarNameInTable="columnTRADING_SID" msprop:Generator_ColumnPropNameInRow="TRADING_SID" msprop:Generator_ColumnPropNameInTable="TRADING_SIDColumn" msprop:Generator_UserColumnName="TRADING_SID" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="20" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="INITIAL_DT" msprop:Generator_ColumnVarNameInTable="columnINITIAL_DT" msprop:Generator_ColumnPropNameInRow="INITIAL_DT" msprop:Generator_ColumnPropNameInTable="INITIAL_DTColumn" msprop:Generator_UserColumnName="INITIAL_DT" type="xs:dateTime" minOccurs="0" />
              <xs:element name="INITIAL_USR" msprop:Generator_ColumnVarNameInTable="columnINITIAL_USR" msprop:Generator_ColumnPropNameInRow="INITIAL_USR" msprop:Generator_ColumnPropNameInTable="INITIAL_USRColumn" msprop:Generator_UserColumnName="INITIAL_USR" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="30" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:SHP_SCORE_SALES_LOG" />
      <xs:field xpath="mstns:SALES_LOG_ID" />
    </xs:unique>
  </xs:element>
</xs:schema>